The Visitor design pattern is used to separate the exception hierarchy from the code that builds the fault details. Visitor设计模式用于把异常层次与构建故障详细信息的代码分开。
Even though the sequence of doing the JNDI lookup is well known, casting and handling the JNDI exception adds a lot of standard code. 就算已经知道了做JNDI查找的序列,处理JNDI例外的操作会添加一系列标准代码。
The exception hierarchy simplifies error handling and greatly reduces the amount of exception code you need to write, such as opening and closing connections. 异常层次结构简化了错误处理,并且极大地降低了需要编写的异常代码数量(例如打开和关闭连接)。
All of this required only a few lines of custom exception code and a little thought about how to implement fatalError(). 所有这一切都只需几行自定义异常代码并思考如何实现fatalError()。
Creating a nested, hierarchical exception framework will improve both your code's readability and its usability. 创建一个嵌套的、层次结构化的异常框架将改进代码的可读性及其可用性。
Pay special attention to the try/ catch statement; because startElement() uses a special exception to stop parsing, the code must recognizes that it is not an error. 特别要注意try/catch语句;因为startElement()使用特殊异常来停止解析,所以代码必须识别那不是一个错误。
To avoid distractions I've ignored exception handling in the code. 为避免分散注意力,我已在代码中忽略了异常处理。
Please note that you still need to throw whatever exception is caught by the invoked code ( in this case, IOException). 请注意您还是需要抛出由被调用代码捕获的异常(在本例中,为IOException)。
MQ methods will throw an exception whenever the completion code or reason code resulting from an MQ call is not zero. 每当MQ调用产生的完成或原因代码不为零,MQ方法就会引发异常。
In fact, video game consoles are often an exception to general rules about modern code not needing much porting. 实际上,视频游戏控制台对于现代代码来说通常都是一个例外,不需要太多移植。
If the service throws an exception, then this code falls into the catch block. 如果服务引发异常,则此代码将进入catch块。
It means that your exception handlers in the Java code works, and it caught an exception. 它意味着Java代码中的异常处理程序工作正常,并且捕获到了一个异常。
Because this code is only a sample we don't perform any real error processing, but we do implement a dummy exception handler to allow the code to compile. 由于此代码仅仅作为样例使用,我们没有执行任何实际的错误处理,但是我们实现了一个虚构的异常处理程序,从而完成代码的编译。
With the exception of code, these organizations often have little or no formal way to manage development artifacts, such as documents and models. 除了代码外,这些组织经常没有或只有很少用于管理文档和模型等开发构件的正式方法。
The fact that hooks are simply attached to the data object makes your application oblivious to it ( with exception of the code snippet where you create your data object). 由于钩子是被附加到数据对象上的,所以应用程序感觉不到它的存在(惟一的例外是创建数据对象的代码片段)。
By placing exception handling code in your application, you can handle most of the errors users may encounter and enable the application to continue running. 通过在应用程序中放置异常处理代码,可以处理用户可能遇到的大多数错误并使应用程序能够继续运行。
Shows how to run a particular block of statements if a specified exception occurs while your code is running. 演示运行代码时如果发生指定异常应如何运行特定语句块。
This functions is called, when an Exception is thrown by user code or by MINA. 这个函数被调用,当异常是由用户代码或MINA的异常。
Thus, it is important to include exception handlers in all of your production code. 因此,在所有的运行代码中包括异常处理程序是很重要的。
If type-safe code is required by the security policy but the code does not pass verification, an exception is thrown when the code is run. 如果安全策略要求提供类型安全代码,而该代码不能通过验证,则在运行该代码时将引发异常。
If you do have a TryCatch the exception is caught and your code is allowed to continue processing. 如果你设置一个TryCatch,异常就会被捕获,你的代码可以继续执行。
In structured exception handling, blocks of code test for specific circumstances and react accordingly. 在结构化异常处理中,代码块会测试特定的环境并相应地做出响应。
If stat throws an exception with property code equal to2, the remote directory doesn't exist so we create it, assigning it the correct permissions. 如果stat抛出一个异常且属性码是2,则说明远程目录不存在。我们则需要创建它并设置正确的权限。
If the exception carries a hardware error code, it saves it on the stack. 如果异常携带了一个硬件错误码,则将它保存在栈中。
Neither your exception handler code nor the code following it would have been executed: either the system would have crashed or some higher-level handler would have taken over. 无论你的异常处理器代码还是它之后的代码被执行:活着操作系统崩溃活着一些高级别的处理器将接管。
The application is now ready for you to add structured exception handling code. 现在应用程序已经就绪,可以添加结构化异常处理代码了。
Once any malicious code that attempts to execute in the stack, a general-protection exception is triggered, then the malicious code will be terminated. 堆栈中的攻击代码被执行时,CPU就会触发一个保护异常,攻击代码不能继续执行。
If the information obtained by this method is used in structure testing, it can improve the testing efficiency and the testing coverage of exception handling code. 通过这种分析方法获得的信息,应用到软件的结构测试,可以提高测试的效率和异常处理代码的测试覆盖率;
China is no exception, the "Code of Criminal Procedure" in 1997 and "lawyer law" in 1996 makes a certain amount of provisions in respect of the defense rights of lawyers. 我国也不例外,在1997年的《刑事诉讼法》和1996年的《律师法》中对辩护律师的权利作出了一定的规定。
Because the particularity of the control flows and the data flows, they are rarely covered in the white-box testing, which makes the error in the exception handling code hardly exclude. 由于这些控制流和数据流的特殊性,它们很难在白盒测试中被覆盖。这使得异常处理代码中的错误很难被排除。